package org.example.pojo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Component(value = "car")
public class Car {

    @Value("1")
    private Integer id;
    @Value("宝马")
    private String name;
    @Value("20")
    private Double price;
}
